package com.okyai.cms.generate.utils;

/**
 * @Author: okyai
 * @Description:
 */
public enum  TagTypeEnum {
    /**
     * 单标签
     */
    SINGLE("single"),
    /**
     * 分页标签
     */
    PAGE("page"),
    /**
     * 列表标签
     */
    LIST("list");

    TagTypeEnum(String type) {
        this.type = type;
    }

    private String type;

    public static TagTypeEnum get(String type) {
        for (TagTypeEnum e : TagTypeEnum.values()) {
            if (e.type.equals(type)) {
                return e;
            }
        }
        return null;
    }
}
